global.name='john';
function sayName(x,y){

	console.log(this.name+"...."+x+"..."+y);
}
sayName();

//函数借用
var dog={name:'tommy',age:100,
sayName:function(){console.log(this.name)}
};
var cat={name:'mike',age:100};

dog.sayName();

sayName.call(cat,1,2);
sayName.apply(cat,[3,4])
dog.sayName.call(cat);




